/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import java.awt.CardLayout;
import javax.swing.JPanel;


/**
 *
 * @author nvc11190
 */
public class CardLayout1 {
    
    public void SetPanelLayout(JPanel panelSet,JPanel panelGet){
        CardLayout card = (CardLayout)panelSet.getLayout();
        panelSet.removeAll();
        panelSet.add(panelGet);
        card.next(panelSet);
    }
}
